<?php
class Zgome_Plugins_LayoutSelector extends Zend_Controller_Plugin_Abstract {
	public function preDispatch(Zend_Controller_Request_Abstract $request) {
		$module = $request->getModuleName();
		$option = array(
				"layout" => "layout",
				"layoutPath" => APPLICATION_PATH."/layouts/".$module."/scripts/"
		);
		Zend_Layout::startMvc($option);
	}
}
?>